package cn.dkk.behavior_design.stategy.impl;

import cn.dkk.behavior_design.stategy.interf.Strategy;

/**
 * @author dkk
 * @date 2022/7/21
 * @desc 策略聚合类
 */
public class GatherClass {

    private Strategy strategy;

    public void gatherShow(){
        strategy.show();
    }

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public GatherClass(Strategy strategy) {
        this.strategy = strategy;
    }
}
